package com.test.spring.core;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * @Author ll
 * @Date 2017/6/13 18:13
 */
public class UserPojoTemp implements Serializable {
    private static final long serialVersionUID = 1030132720552116586L;

    private int id;             // 用户ID
    private String name;        // 用户姓名
    private boolean sex;        // 用户性别
    private int age;            // 用户年龄
    private String address;     // 用户住址
    private Timestamp regTime;  // 用户注册时间

    public UserPojoTemp(int id, String name, boolean sex, int age, String address, Timestamp regTime) {
        this.id = id;
        this.name = name;
        this.sex = sex;
        this.age = age;
        this.address = address;
        this.regTime = regTime;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isSex() {
        return sex;
    }

    public void setSex(boolean sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Timestamp getRegTime() {
        return regTime;
    }

    public void setRegTime(Timestamp regTime) {
        this.regTime = regTime;
    }

    @Override
    public String toString() {
        return "UserPojoTemp{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", sex=" + sex +
                ", age=" + age +
                ", address='" + address + '\'' +
                ", regTime=" + regTime +
                '}';
    }
}
